package com.sun.nanhong;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

/**
 * Created by sun on 2016/10/9.
 */
public class SimpleServlet extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        //测试
        PrintWriter out = resp.getWriter();
        String receiveMsg = SimpleService.getServiceDescription();
        out.println(receiveMsg);
        out.flush();
        out.close();
    }
}
